package cn.com.cpic.insurance.rulecheck.core.expression;

import cn.com.cpic.insurance.rulecheck.core.Context;
import cn.com.cpic.insurance.rulecheck.core.element.Element;
import cn.com.cpic.insurance.rulecheck.core.exception.OperateException;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-14
 */
public final class ElementExpression<T> implements Expression<T> {
	private static final long serialVersionUID = -4689169920243471299L;

	private final Element<T> exp;

	public ElementExpression(Element<T> exp) {
		this.exp = exp;
	}

	public T operate(Context context) throws OperateException {
		return exp.operate(context);
	}

}
